<?php
$dbhost = "localhost:3306";
	$databasename = "questdb";
	$dbuser="root";
	$dbpassword="default";

	// Connect to the MySQL
	$link = @mysql_connect($dbhost, $dbuser, $dbpassword);
	if (!$link)
		{
		die('Not connected : ' . mysql_error());
		}
	
	// select test as the current db
	$db_selected = mysql_select_db($databasename, $link);
	if (!$db_selected)
		{
		die ("Database not selected : " . mysql_error());
		}
?>